package c.e.a.b.f.b;

import java.util.Map;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final /* synthetic */ class e7 implements Runnable {
    public final f7 a;
    public final int b;
    public final Exception c;
    public final byte[] d;
    public final Map e;

    public e7(f7 f7Var, int i, Exception exception, byte[] bArr, Map map) {
        this.a = f7Var;
        this.b = i;
        this.c = exception;
        this.d = bArr;
        this.e = map;
    }

    /* JADX WARNING: Removed duplicated region for block: B:29:0x00b7 A:{Catch:{ JSONException -> 0x00ee }} */
    /* JADX WARNING: Removed duplicated region for block: B:28:0x00ab A:{Catch:{ JSONException -> 0x00ee }} */
    public final void run() {
        /*
        r12 = this;
        r0 = r12.a;
        r1 = r12.b;
        r2 = r12.c;
        r3 = r12.d;
        r0 = r0.b;
        r0 = r0.a;
        r4 = "gclid";
        r5 = "";
        r6 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;
        r7 = 1;
        r8 = 0;
        if (r1 == r6) goto L_0x001e;
    L_0x0016:
        r6 = 204; // 0xcc float:2.86E-43 double:1.01E-321;
        if (r1 == r6) goto L_0x001e;
    L_0x001a:
        r6 = 304; // 0x130 float:4.26E-43 double:1.5E-321;
        if (r1 != r6) goto L_0x0022;
    L_0x001e:
        if (r2 != 0) goto L_0x0022;
    L_0x0020:
        r6 = 1;
        goto L_0x0023;
    L_0x0022:
        r6 = 0;
    L_0x0023:
        if (r6 != 0) goto L_0x0036;
    L_0x0025:
        r0 = r0.d();
        r0 = r0.i;
        r1 = java.lang.Integer.valueOf(r1);
        r3 = "Network Request for Deferred Deep Link failed. response, exception";
        r0.c(r3, r1, r2);
        goto L_0x00fa;
    L_0x0036:
        r1 = r0.o();
        r1 = r1.x;
        r1.a(r7);
        r1 = r3.length;
        if (r1 != 0) goto L_0x004f;
    L_0x0042:
        r0 = r0.d();
        r0 = r0.m;
        r1 = "Deferred Deep Link response empty.";
        r0.a(r1);
        goto L_0x00fa;
    L_0x004f:
        r1 = new java.lang.String;
        r1.<init>(r3);
        r2 = new org.json.JSONObject;	 Catch:{ JSONException -> 0x00ee }
        r2.<init>(r1);	 Catch:{ JSONException -> 0x00ee }
        r1 = "deeplink";
        r1 = r2.optString(r1, r5);	 Catch:{ JSONException -> 0x00ee }
        r3 = r2.optString(r4, r5);	 Catch:{ JSONException -> 0x00ee }
        r5 = "timestamp";
        r9 = 0;
        r5 = r2.optDouble(r5, r9);	 Catch:{ JSONException -> 0x00ee }
        r2 = android.text.TextUtils.isEmpty(r1);	 Catch:{ JSONException -> 0x00ee }
        if (r2 == 0) goto L_0x007e;
    L_0x0071:
        r1 = r0.d();	 Catch:{ JSONException -> 0x00ee }
        r1 = r1.m;	 Catch:{ JSONException -> 0x00ee }
        r2 = "Deferred Deep Link is empty.";
        r1.a(r2);	 Catch:{ JSONException -> 0x00ee }
        goto L_0x00fa;
    L_0x007e:
        r2 = r0.t();	 Catch:{ JSONException -> 0x00ee }
        r9 = android.text.TextUtils.isEmpty(r1);	 Catch:{ JSONException -> 0x00ee }
        if (r9 != 0) goto L_0x00a8;
    L_0x0088:
        r2 = r2.a;	 Catch:{ JSONException -> 0x00ee }
        r2 = r2.a;	 Catch:{ JSONException -> 0x00ee }
        r2 = r2.getPackageManager();	 Catch:{ JSONException -> 0x00ee }
        r9 = new android.content.Intent;	 Catch:{ JSONException -> 0x00ee }
        r10 = "android.intent.action.VIEW";
        r11 = android.net.Uri.parse(r1);	 Catch:{ JSONException -> 0x00ee }
        r9.<init>(r10, r11);	 Catch:{ JSONException -> 0x00ee }
        r2 = r2.queryIntentActivities(r9, r8);	 Catch:{ JSONException -> 0x00ee }
        if (r2 == 0) goto L_0x00a8;
    L_0x00a1:
        r2 = r2.isEmpty();	 Catch:{ JSONException -> 0x00ee }
        if (r2 != 0) goto L_0x00a8;
    L_0x00a7:
        goto L_0x00a9;
    L_0x00a8:
        r7 = 0;
    L_0x00a9:
        if (r7 != 0) goto L_0x00b7;
    L_0x00ab:
        r2 = r0.d();	 Catch:{ JSONException -> 0x00ee }
        r2 = r2.i;	 Catch:{ JSONException -> 0x00ee }
        r4 = "Deferred Deep Link validation failed. gclid, deep link";
        r2.c(r4, r3, r1);	 Catch:{ JSONException -> 0x00ee }
        goto L_0x00fa;
    L_0x00b7:
        r2 = new android.os.Bundle;	 Catch:{ JSONException -> 0x00ee }
        r2.<init>();	 Catch:{ JSONException -> 0x00ee }
        r2.putString(r4, r3);	 Catch:{ JSONException -> 0x00ee }
        r3 = "_cis";
        r4 = "ddp";
        r2.putString(r3, r4);	 Catch:{ JSONException -> 0x00ee }
        r3 = r0.p;	 Catch:{ JSONException -> 0x00ee }
        r4 = "auto";
        r7 = "_cmp";
        r3.H(r4, r7, r2);	 Catch:{ JSONException -> 0x00ee }
        r2 = r0.t();	 Catch:{ JSONException -> 0x00ee }
        r3 = android.text.TextUtils.isEmpty(r1);	 Catch:{ JSONException -> 0x00ee }
        if (r3 != 0) goto L_0x00fa;
    L_0x00d9:
        r1 = r2.Y(r1, r5);	 Catch:{ JSONException -> 0x00ee }
        if (r1 == 0) goto L_0x00fa;
    L_0x00df:
        r1 = new android.content.Intent;	 Catch:{ JSONException -> 0x00ee }
        r3 = "android.google.analytics.action.DEEPLINK_ACTION";
        r1.<init>(r3);	 Catch:{ JSONException -> 0x00ee }
        r2 = r2.a;	 Catch:{ JSONException -> 0x00ee }
        r2 = r2.a;	 Catch:{ JSONException -> 0x00ee }
        r2.sendBroadcast(r1);	 Catch:{ JSONException -> 0x00ee }
        goto L_0x00fa;
    L_0x00ee:
        r1 = move-exception;
        r0 = r0.d();
        r0 = r0.f;
        r2 = "Failed to parse the Deferred Deep Link response. exception";
        r0.b(r2, r1);
    L_0x00fa:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.e7.run():void");
    }
}
